package org.edu.modules.jxzy.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.edu.modules.jxzy.config.ConfigConstant;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.edu.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 教材库存表
 * @Author: jeecg-boot
 * @Date:   2021-04-14
 * @Version: V1.0
 */
@Data
@TableName("ve_jw_jiaocai_kucun")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ve_jw_jiaocai_kucun对象", description="教材库存表")
public class JwJiaocaiKucun implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;
	/**教材Id*/
	@Excel(name = "教材Id", width = 15)
    @ApiModelProperty(value = "教材Id")
    @Dict(dictTable = "ve_jw_jiaocai",dicCode = "id",dicText = "JCMC")
    private Integer jcid;
	/**仓库Id*/
	@Excel(name = "仓库Id", width = 15)
    @ApiModelProperty(value = "仓库Id")
    @Dict(dictTable = "ve_jw_cangku",dicCode = "id",dicText = "name")
    private Integer ckid;
	/**库存数量*/
	@Excel(name = "库存数量", width = 15)
    @ApiModelProperty(value = "库存数量")
    private Integer num;
	/**更新时间*/
	@Excel(name = "更新时间", width = 15)
    @ApiModelProperty(value = "更新时间")
    private Integer updatetime;
	/**终端ID*/
	@Excel(name = "终端ID", width = 15)
    @ApiModelProperty(value = "终端ID")
    private Integer terminalid;

    @TableField(exist = false)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date time;

    /**仓库名称*/
    @TableField(exist = false)
    private String ckmc;
}
